5
5
.
.
2
2
1
1
.
.
s
s
h
h
a
a
d
d
o
o
w
w
I
I
n
n
f
f
o
o
[
[
R
R
]
]
.shadow modifier adds shadow to the text.
Syntax
.shadow(color: Color.black, radius: 2, x: 2, y: 2)
E
E
x
x
a
a
m
m
p
p
l
l
e
e
Example
struct ContentView: View {
var body: some View {
VStack {
Text("Example")
.shadow(color: Color.black, radius: 2, x: 2, y: 2)
}
}
}
Output